package cn.bluemobi.platform.service;

import java.util.List;
import java.util.Map;

import cn.bluemobi.common.core.dto.MapDto;
import cn.bluemobi.common.core.dto.Page;
import cn.bluemobi.common.core.dto.PageCondition;
import cn.bluemobi.platform.entity.category.CommodityCategory;
import cn.bluemobi.platform.entity.system.User;

public interface CatagoryService {

	Page<Map<String, Object>> findCatagoryList(PageCondition cond);

	CommodityCategory findCategoryDetail(String catagoryId);

	MapDto saveOrUpdate(CommodityCategory catagory, User user);

	MapDto deleteCatagory(Long catagoryId, User user);

	Page<Map<String, Object>> findSecondCatagoryList(PageCondition cond);

	List<Map<String, Object>> findAllFirstCategory();

	List<CommodityCategory> querySecondCatagoryForAjax();

}
